SftTree/OCX 7.0

SftPictureObject.Type Property

Softel vdm, Inc.

Returns the defined image type.

Syntax       

Get

VB.NET

Style = object.Type  As SftPictureTypeConstants

VB

Style = object.Type  As SftPictureTypeConstants

C#.NET

SftPictureTypeConstants Style = object.Type;

VC++

enum SftPictureTypeConstants Style = object->Type;
enum SftPictureTypeConstants Style = object->GetType();

C

HRESULT object->get_Type(enum SftPictureTypeConstants* Style);

Delphi

Style := object.type_  : TOleEnum;

object

A SftPictureObject object.

Style

Returns the defined image type.

Name

Value

Description

sftTypeNone

0

None - The SftPictureObject is empty. 

sftTypeIDispatch

1

IDispatch - Contains an OLE Picture object (supporting the IPicture or IPictureDisp interface).

sftTypeBitmap

2

Bitmap - Contains a Windows bitmap.

sftTypeIcon

3

Icon - Contains an icon. 

sftTypeImageList

4

ImageList - Contains an image from an ImageList control.

sftTypeColorSample

5

Color Sample - Contains a color sample.

sftTypeBuiltin

6

Built-In Appearance - Contains a predefined built-in image.

sftTypeImageListH

7

ImageListH - Contains an image from an ImageList control.

sftTypeGDIPlus

8

GDIPlus - Contains a GDI+ image

Comments

The Type property returns the defined image type.

The Type property reflects the type of the current image.  It is modified by assigning an image to the SftPictureObject using a property such as SftPictureObject.Appearance, SftPictureObject.BitmapHandle, SftPictureObject.IconHandle, SftPictureObject.SetColorSample, etc.

See Also  SftPictureObject Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com